import request from '@/utils/request'
export default {
  returnedList(params) {
    return request({
      url: '/v1/returnedList',
      method: 'get',
      params
    })
  },
  detail(id) {
    return request({
      url: `/v1/returned/${id}`,
      method: 'get'
    })
  },
  create(data) {
    return request({
      url: `/v1/returnedAdd`,
      method: 'post',
      data
    })
  },
  update(data) {
    return request({
      url: `/v1/returnedUpdate`,
      method: 'post',
      data
    })
  },
  delete(data) {
    return request({
      url: `/v1/returnedDel`,
      method: 'post',
      data
    })
  },
  status(data) {
    return request({
      url: `/v1/returnedStatus`,
      method: 'post',
      data
    })
  }
}
